package deviceinfo.wsm.com.deviceinfo.app;

import java.util.LinkedHashMap;

import deviceinfo.wsm.com.deviceinfo.WsmDeviceInfoSDK;
import deviceinfo.wsm.com.deviceinfo.plugin.com.an.deviceinfo.device.model.App;

/**
 * Created by 王家宝 on 2018/7/9.
 * TEL:18241150668
 * MAIL:639586819@qq.com
 */

public class AppInfoUtils {
    public static LinkedHashMap<String, String> getAll(){
        App app = new App(WsmDeviceInfoSDK.getWsmSDK().getAppContext());
        LinkedHashMap<String, String> data = new LinkedHashMap<>();
        data.put("应用名称", app.getAppName());
        data.put("应用包名", app.getPackageName());
        data.put("应用版本号", app.getAppVersionName());
        data.put("应用版本编号", app.getAppVersionCode()+"");
        return data;
    }
}
